import java.sql.Connection;
import java.sql.SQLException;

public class A extends Thread{
    private ConnectionPool pool;

    public void run(){
        Connection connection = pool.getConnection();
        try {
            Thread.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        try {
            connection.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }


    public static void main(String[] args) {
//        for (int i = 0; i <50 ; i++) {
//            Thread a = new A();
//            a.start();
//
//        }

    }
}
